const userMap = {
    "timestamp": "2021-07-26T15:08:20+0800",
    "code": "0",
    "message": "成功",
    "data": {
        "id": 1,
        "username": "admin",
        "firstname": null,
        "lastname": null,
        "locale": null,
        "active": true,
        "lastLoginOn": null,
        "roles": [
            "admin"
        ],
        "permissions": [
            "default:all"
        ],
        "sessionId": "bb8734fc-7f29-40af-890d-ad5bdc5c8da6"
    }
}

export default {
    loginByUsername: config => {
        return userMap
    },
    logout: () => {
        return {
            "timestamp": "2021-07-27T09:45:48+0800",
            "code": "0",
            "message": "成功",
            "data": null
        }
    }
}